Microsoft Azure subscription
Local machine or a virtual machine configured with Visual Studio 2017 Community Edition or better
Duration: 20 minutes
In this exercise, you will set up an environment to use for the rest of the exercises.
Launch a browser using incognite or in-private mode, and navigate to https://portal.azure.com. Once prompted, login with your Microsoft Azure credentials. If prompted, choose whether your account is an organization account or just a Microsoft Account.
Click + Create a resource, and in the search box, type in Visual Studio Community 2017 on Windows Server 2016 (x64), and press enter. Click the Visual Studio Community 2017 image running on Windows Server 2016 and with the latest update.
In the returned search results, click the image name.
In the Marketplace solution blade, click Create.
Set the following configuration on the Basics tab, and click OK.
Name: LABVM
VM disk type: SSD
User name: demouser
Password: demo@pass123
Subscription: If you have multiple subscriptions choose the subscription to execute your labs in.
Resource Group: OPSLABRG
Location: Choose the closest Azure region to you.
Choose the DS1_V2 Standard instance size on the Size blade.
Accept the remaining default values on the Settings blade, and click OK. On the Summary page, click OK. The deployment should begin provisioning. It may take more than 10 minutes for the virtual machine to complete provisioning.
NOTE: Sometimes this image has IE ESC disabled. Sometimes it does not.
On the new VM, you just created, click the Server Manager icon.
Click Local Server.
On the right side of the pane, click On by IE Enhanced Security Configuration.
Change to Off for Administrators, and click OK.
Create a new folder on your C: drive named HOL.
Download the sample application and ARM template (optimized-architecture-student.zip) from here: https://cloudworkshop.blob.core.windows.net/optimized-architecture/OptimizedArchitecture-StudentFiles-6-2017.zip.
Right click on the downloaded .zip file, and click Properties. On the properties pane, check Unblock to ensure the files are marked safe.
Extract the zip file contents to the HOL folder.
From the ARMTemplate folder under HOL, open the Visual Studio Solution file: Contoso.Financial.ARMTemplate.sln.
From the C:\HOL\ARMTemplate folder, open the Visual Studio Solution: Contoso.Financial.ARMTemplate.sln
In the Solution Explorer window, right-click on the Contoso.Financial.ARMTemplate project, click Deploy, and then click New…
If your Microsoft or Organization account for your Azure Subscription has not been added to Visual Studio yet, click on Add an account, then Add an account…, and follow the prompts to login.
Click on the Resource group dropdown, followed by selecting <Create New…>.
On the Create Resource Group dialog, enter the following values:
Resource group name: ContosoExistingRG
Resource group location: North Central US (note if your subscription allows this otherwise pick up subscription where you are allowed to deploy to)
Click the Create button.
In the Deploy to Resource Group dialog, click the Deploy button to deploy the ARM Template to the newly created Resource Group.
Deployment status of the ARM Template will be displayed in the Output window within Visual Studio.
Once the deployment has completed successfully, the IP Address and FQDN of the External / Internet Load Balancer for the Web App tier will be displayed in the output window.
The Username and Password for the VMs and SQL Database created by the ARM Template are: - Username: demouser - Password: demo@pass123
Open a new Web Browser window, and navigate to the Web App tier using the Internet Load Balancer IP Address.
To login to the Web App Tier of the Contoso Financial sample application, simply enter any email address and password followed by clicking on Sign in. If you can’t immediately sign in, give the site a few minutes to run the background process and then attempt to sign in again.
Once logged in, the sample application will display a simple Account Transaction ledger.
Leaving the browser open to the Account Overview page will automatically load new transactions as they are generated by the background process, since the web page has a JavaScript timer that checks for new transactions periodically. You should follow all steps provided before attending the HOL.